import QtQuick 2.0
import "../../../customqml"
Rectangle{
    Loader{
        id:animLoader
        x:320
        y:100
        //anchors.centerIn: parent
        //anchors.fill: parent
        width: 480
        height: 600
    }
    NormalBtn{
        x:220
        y:100
        id:bt_1
        text: "播放本地文件"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/MultiMediaSub/PlayMedia.qml"
                }
            }
        }
    }
    NormalBtn{
        x:320
        y:100
        id:bt_2
        text: "摄像头"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/MultiMediaSub/Carema.qml"
                }
            }
        }
    }
}


